package com.design.cjm.behavioral.command.example;

/**
 * 将一个接收者对象绑定于一个动作，调用接收者相应的操作，以实现execute
 *
 * @Author: Jie Ming Chen
 * @Date: 2018/9/25
 * @Version 1.0
 */
public class ConcreteCommand extends Command{

    public ConcreteCommand(Receiver receiver) {
        super(receiver);
    }

    @Override
    public void execute() {
        receiver.action();
    }
}
